
Page({
  data: {
    books:[
      "书籍1",
      "书籍2"
    ],
    isLogin:true
  },
  getPhoneNumber:function (e) {
    console.log(e);
  },
  handleGetUserInfo:function (e) {
    wx.getUserProfile({
      desc:'用来完善用户的个人信息',
      success:function (res) {
        console.log(res);
      },
      fail:function (err) {
        console.log(err);
      },
      complete:function () {
        console.log(1);
      }
    })
  }
})